package com.bruan.junit_test;

public class StringUtil {
    public static void printNumber(String name){
        if(name == null){
            System.out.println(0);
            return;
        }
        System.out.println("name length is"+name.length());
    }
    public static int getMaxIndex(String data){
        if(data == null){
            return -1;
        }else {
            return data.length();
        }
    }
}
